<extend name="public@base"/>

<block name="body">
    <include file="public@breadcrumb" />
    <div class="container">
        <div class="row">
            <!--blog start-->
            <div class="col-lg-12">
                <div class="blog-item">
                    <div class="row">
                        <div class="col-lg-2 col-sm-2">
                            <div class="date-wrap">
                                <span class="date">{$article.create_time|date='d'}</span>
                                <span class="month">{$article.create_time|date='Y/m'}</span>
                            </div>

                        </div>
                        <div class="col-lg-10 col-sm-10">
                            <div class="blog-img">
                                <img src="{$article.more.thumbnail|cmf_get_image_url}" alt="">
                            </div>

                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-2 col-sm-2 text-right">

                            <notempty name="article.post_source">
                                <div class="author">
                                    By
                                    <a href="#">
                                        {$article.post_source}
                                    </a>
                                </div>
                            </notempty>

                            <php>$tags=explode(',',$article['post_keywords']);</php>
                            <notempty name="$tags">
                                <ul class="list-unstyled">
                                    <volist name="$tags" id="v">
                                        <li>
                                            <a href="javascript:;">
                                                <em>{$v}</em>
                                            </a>
                                        </li>
                                    </volist>
                                </ul>
                            </notempty>
                            <div class="st-view">
                                <ul class="list-unstyled">
                                    <li>
                                        <a href="javascript:;"><i class="fa fa-eye"></i> {$article.post_hits}</a>
                                    </li>
                                    <li>
                                        <a href="{:url('user/Favorite/add',array('id'=>$article['id'],'cid'=>$category['id']))}"
                                           class="js-favorite-btn"
                                           data-id="{$article.id}"
                                           data-table="portal_post"
                                           data-title="{:base64_encode($article.post_title)}"
                                           data-url="{:cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id']))}"
                                        >
                                            <i class="fa fa-star-o"></i>{$article.post_favorites}
                                        </a>
                                    </li>
                                    <li>
                                        <a href="{:url('portal/Article/doLike',array('id'=>$article['id']))}"
                                           class="js-count-btn"><i class="fa fa-thumbs-up"></i><span class="count">{$article.post_like}</span></a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-lg-10 col-sm-10">
                            <h1>
                                <a href="{:cmf_url('portal/Article/index',['id'=>$vo.id,'cid'=>$category.id])}">
                                    {$article.post_title}
                                </a>
                            </h1>
                            <p>
                                {$article.post_excerpt}
                            </p>
                            <blockquote>
                                <p>{$article.post_content}</p>
                            </blockquote>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</block>